README.txt
Last updated: November 4, 2025



This folder provides replication materials for 
“LIFETIME MEMORIES OF INFLATION:EVIDENCE FROM SURVEYS AND THE LAB”
General Information
Author Information (Name, Institution, Email)
1. Name: Isabelle Salle, Department of Economics, UOttawa, and Amsterdam School of Economics, UvA. 
Email: isalle@uottawa.ca
2. Name: Yuriy Gorodnichenko, Department of Economics, UC Berkeley, and NBER
Email: ygorodni@econ.berkeley.edu
3. Name: Olivier Coibion, Department of Economics, UT – Austin, and NBER
Email: ocoibion@austin.utexas.edu


============================================================
                   PROJECT DIRECTORY OVERVIEW
============================================================

DATA FILES
-----------
- Raw survey data are stored in the subfolder "data".
- Additional external datasets are stored in the subfolder "external_data" inside the "data" folder.


STATA DO-FILES AND DATA PROCESSING
----------------------------------
- All STATA do-files are located in the subfolder "do_files".
- The names of the do-files indicate the order in which they should be executed.
  For example, run "step000.do" first to set up global paths, followed by
  "step001.do", "step002.do", … up to "step611.do".
- Each do-file name also indicates which figure or table it produces.
- STATA workfiles are stored in the subfolder "workfiles". These files are
  generated by the do-files and are sufficient to reproduce all figures and tables.


R SCRIPTS AND DATA PROCESSING
-----------------------------
- All R scripts in: replication_SGC_2025/R_scripts
- The subfolder "R_scripts" contains R scripts used to generate word clouds,
  forecast plots, and radar charts.
- Download, install and load the required packages: haven, tm, wordcloud, fmsb , readxl,
  dplyr (version >   1.1.0): each R script includes code to download, install and load the required packages automatically.    
- Before running the R scripts, update your user name in each file.
- Run the R scripts sequentially from "step001.R" to "step004.R".
- Two corresponding STATA do-files, "step604.do" and "step605.do", are included in the "do_files" subfolder to run the R scripts directly from Stata. After setting your user name in "step604.do", "step605.do" and all R scripts, you can first run "step001.R" to set the right paths in R, and then execute "step605.do" to run "step002.R" to "step004.R" from Stata and reproduce the R figures.


FIGURES AND TABLES
------------------
- All figures are saved in the "figures" subfolder.
- All tables are saved in the "output" subfolder.


============================================================
                   CODE-SPECIFIC INFORMATION
============================================================

1. SOFTWARE VERSIONS
   ------------------
   - R scripts were last executed using R version 1.2.5033 (as of 2025-10-30).
   - STATA code was last executed using StataNow/SE 19.5.

2. DOMIN PACKAGE REQUIREMENT
   --------------------------
   - To run "step306.do" (in the "do_files" subfolder), you need domin() version 3.4.2.
   - The required package has been downloaded from:
         https://github.com/jluchman/domin/releases/tag/v3.4.2
     and stored in the subfolder "domin-3.4.2".
   - To install this version, simply run "domin.ado" to install domin() version 3.4.2. Further instructions are included as comments on the top of "step306.do". 

3. SYSTEM PATH FORMAT
   -------------------
   - If you are using macOS (iOS), replace all backward slashes "\" with forward slashes "/"
     in directory path commands. Note that Stata cannot produce emf figures under macOS. 
   - If you are using Windows, use backward slashes "\" instead of forward slashes.


============================================================
                           END
============================================================
